package com.example.his.api.db.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.his.api.db.pojo.RoleEntity;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public interface RoleDao extends BaseMapper<RoleEntity> {
    public ArrayList<HashMap> searchAllRole();

    List<HashMap<String,Object>> searchByPage(@Param("roleName") String roleName);

    int saveRole(RoleEntity roleEntity);

    public HashMap searchById(int id);
    public ArrayList<Integer> searchUserIdByRoleId(int roleId);
    public int update(RoleEntity role);

    public boolean searchCanDelete(Integer[] ids);
    public int deleteByIds(Integer[] ids);
}




